package com.csc.yunting.core.pojo.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Artist", description = "歌手")
public class Artist implements Serializable {


    private Long id;
    @ApiModelProperty(value = "图片")
    private String img1v1Url;
    @ApiModelProperty(value = "名字")
    private String name;
    @ApiModelProperty(value = "标签")
    private String alias;
    @ApiModelProperty(value = "国家")
    private String country;
    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
    @TableField(exist = false)//该属性不是数据库表映射的字段
    private Boolean hasChildren;


}
